package com.vhall.component.entity.goods;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author guoxin.wang
 * @date 2021/10/21 17:58
 */
@Data
@TableName("live_goods")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LiveGoodsEntity对象", description = "直播绑定商品列表")
public class LiveGoodsEntity implements Serializable {

    private static final long serialVersionUID = -4666194796076978372L;

    @TableId(value = "bcg_id", type = IdType.AUTO)
    @JsonProperty("bcg_id")
    private Integer bcgId;

    @ApiModelProperty(value = "商家id")
    @TableField(value = "bg_id")
    @JsonProperty("bg_id")
    private Integer bgId;

    @ApiModelProperty(value = "直播ID")
    @TableField(value = "il_id")
    @JsonProperty("il_id")
    private Integer ilId;

    @ApiModelProperty(value = "商家id")
    @JsonProperty("account_id")
    @TableField(value = "account_id")
    private Integer accountId;

    @ApiModelProperty(value = "-1删除,1正常")
    @JsonProperty("goods_status")
    @TableField("goods_status")
    private Integer goodsStatus;

    @ApiModelProperty(value = "排序字段")
    @JsonProperty("sort")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "创建时间")
    @JsonProperty("created_at")
    @TableField("created_at")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    @JsonProperty("updated_at")
    @TableField("updated_at")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "删除时间")
    @JsonProperty("deleted_at")
    @TableField("deleted_at")
    private LocalDateTime deletedAt;

}
